//
//  PeerList.h
//  安好
//
//  Created by lianchuang on 14/10/30.
//  Copyright (c) 2014年 冯凯. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MyFMDB.h"
#import "YXJSON.h"
@interface PeerList : NSObject
@property (nonatomic, strong) NSString *uid;
@property (nonatomic, strong) NSString *myuid;
@property (nonatomic, strong) NSString *date;
@property (nonatomic, strong) NSString *dateline;
@property (nonatomic, strong) NSString *message;
@property (nonatomic, strong) NSString *qid;
@property (nonatomic, strong) NSString *type;
@property (nonatomic, strong) NSString *noread;
@property (nonatomic, strong) NSString *username;
@property (nonatomic, strong) NSString *method;
@property (nonatomic, strong) NSString *success;
- (id)initWithUid:(NSString *)uid AndMyuid:(NSString *)myuid AndDate:(NSString *)date AndDateline:(NSString *)dateline AndMessage:(NSString *)message AndQid:(NSString *)qid AndType:(NSString *)type AndNoread:(NSString *)noread AndUsername:(NSString *)username AndMethod:(NSString *)method And:(NSString *)success;
+(BOOL)updatePeerList:(id)message withReadStatus:(NSString *)readStatus withSuccess:(NSString *)success withMessageDirection:(NSString *)messageDirection;
+(BOOL)resetUnreadCountWithUid:(NSString *)uid;
+(NSMutableArray *)readAllPeerListItem;
+(BOOL)isExistPeerItem:(NSDictionary *)dict AndDb:(FMDatabase *)dataBase;
+(BOOL)deleteConsultListWithUid:(NSString *)uid;
+(int)readUnreadCount;
+(NSMutableArray *)getTheLastOne;

@end
